<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<link rel="stylesheet" type="text/css" href="templete/{$templete}/css/common.css" />
	<script src="templete/{$templete}/js/core.js"></script>
</head>
<body>
	<div class="leftBan">
			<div class="logo">
				<img class="logoImg" src="templete/{$templete}/img/logo.png"/>
				<p class="logoText">
				{$logotext}
				</p>
			</div>
			<div class="menu">
				<ul>
					<li>
						<a href="index.php">首页</a>
					</li>
					<li>
						<a href="index.php?type=0">杂记</a>
					</li>
					{foreach $list as $value}
					<li><a href="index.php?type={$value.id}">{$value.name}</a></li>
					{/foreach}
				</ul>
			</div>
	</div>
	<div class="topMenu">
		<div class="topBan">
		<ul>
			<li><a style="margin-top:15px;padding:3px 10px;border:1px solid white;" href="http://dream.supmers.com/" target="_blank"><font color='white'>原梦战论坛点这里</font></a></li>
			{if !$user}
				<li><a href="login.php">登录</a></li>
				<li><a href="register.php">注册</a></li>
			{/if}
			{foreach $topmenu as $value}
				{if $value.state==0}
					<li><a href="{$value.url}">{$value.title}</a></li>
				{/if}
			{/foreach}
			{if $user}
				<li class="mycenter">
					<a class="mycenter_icon" href=""><span class="iconfont">&#xe625;</span></a>
					<div class="mycenter_list">
						<ul>
							<li style="padding:5px 0px;">昵称：{$user.username}</li>
							<li><a href="mycenter.php">账号信息</a></li>
							<li><a href="">未读消息</a></li>
							<li><a href="trans.php?action=logout">退出</a></li>
						</ul>
					</div>
				</li>
			{/if}
		</ul>
		</div>
	</div>
</body>
</html>